﻿using System;

namespace edowork.com.Model
{
    #region menusInfo

    [Serializable]
    public class menusInfo
    {
        #region Private fields

        protected string _menuid = String.Empty;
        protected string _menuremark = String.Empty;
        protected string _url = String.Empty;
        protected int _levels;
        protected string _parentid = String.Empty;
        protected int _sortindex;

        #endregion

        public menusInfo() { }

        #region Public Properties

        public string Menuid
        {
            get { return _menuid; }
            set { _menuid = value; }
        }

        public string Menuremark
        {
            get { return _menuremark; }
            set { _menuremark = value; }
        }

        public string Url
        {
            get { return _url; }
            set { _url = value; }
        }

        public int Levels
        {
            get { return _levels; }
            set { _levels = value; }
        }

        public string Parentid
        {
            get { return _parentid; }
            set { _parentid = value; }
        }

        public int Sortindex
        {
            get { return _sortindex; }
            set { _sortindex = value; }
        }

        #endregion

        #region Public SQL Script

        public string SQL_Insert()
        {
            return "insert into menus(Menuid,Menuremark,Url,Levels,Parentid, sortindex) values('{0}','{1}','{2}',{3},'{4}', {5})";
        }

        #endregion

    }

    #endregion
}

